Skip to content

Conversation

samvangysegem
Copy link

The base_extent variable in the extent_in() method of the bits_locator_t struct now uses the size of its template parameter T instead of std::uint32_t for calculating the base extent .

@elbeno
Copy link
Contributor

elbeno commented Oct 30, 2024

I don't think this is right - the Index is always in dwords, hence computing the extent in bytes uses sizeof(std::uint32_t).

@samvangysegem
Copy link
Author

You're right... I wrongly assumed the Index of the field_locator_t would correspond to the size of the type being held in the underlying storage of the message. Thanks for clarifying! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants